# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'Office_view.ui'
#
# Created: Fri Feb 15 08:43:07 2008
#      by: PyQt4 UI code generator 4.3.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Office_view(object):
    def setupUi(self, Add_Office):
        Add_Office.setObjectName("Add_Office")
        Add_Office.setGeometry(QtCore.QRect(0,0,671,521))

        self.pushButtonOk = QtGui.QPushButton(Add_Office)
        self.pushButtonOk.setGeometry(QtCore.QRect(170,480,75,24))
        self.pushButtonOk.setObjectName("pushButtonOk")

        self.label_2 = QtGui.QLabel(Add_Office)
        self.label_2.setGeometry(QtCore.QRect(10,10,131,16))
        self.label_2.setObjectName("label_2")

        self.groupBox = QtGui.QGroupBox(Add_Office)
        self.groupBox.setGeometry(QtCore.QRect(10,256,401,211))
        self.groupBox.setObjectName("groupBox")

        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setGeometry(QtCore.QRect(20,150,141,16))
        self.label_4.setObjectName("label_4")

        self.label_6 = QtGui.QLabel(self.groupBox)
        self.label_6.setGeometry(QtCore.QRect(190,90,141,16))
        self.label_6.setObjectName("label_6")

        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setGeometry(QtCore.QRect(191,35,141,16))
        self.label_5.setObjectName("label_5")

        self.label = QtGui.QLabel(self.groupBox)
        self.label.setGeometry(QtCore.QRect(23,35,141,16))
        self.label.setObjectName("label")

        self.lineEditLocation = QtGui.QLineEdit(self.groupBox)
        self.lineEditLocation.setGeometry(QtCore.QRect(20,110,131,20))
        self.lineEditLocation.setObjectName("lineEditLocation")

        self.lineEditName = QtGui.QLineEdit(self.groupBox)
        self.lineEditName.setGeometry(QtCore.QRect(20,52,131,20))
        self.lineEditName.setObjectName("lineEditName")

        self.lineEditDescription = QtGui.QLineEdit(self.groupBox)
        self.lineEditDescription.setGeometry(QtCore.QRect(20,170,131,20))
        self.lineEditDescription.setObjectName("lineEditDescription")

        self.lineEditContact = QtGui.QLineEdit(self.groupBox)
        self.lineEditContact.setGeometry(QtCore.QRect(190,50,131,20))
        self.lineEditContact.setObjectName("lineEditContact")

        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setGeometry(QtCore.QRect(20,90,141,16))
        self.label_3.setObjectName("label_3")

        self.lineEditPhone = QtGui.QLineEdit(self.groupBox)
        self.lineEditPhone.setGeometry(QtCore.QRect(190,110,131,20))
        self.lineEditPhone.setObjectName("lineEditPhone")

        self.pushButtonAdd = QtGui.QPushButton(self.groupBox)
        self.pushButtonAdd.setGeometry(QtCore.QRect(230,160,91,24))
        self.pushButtonAdd.setObjectName("pushButtonAdd")

        self.pushButtonDelete = QtGui.QPushButton(Add_Office)
        self.pushButtonDelete.setGeometry(QtCore.QRect(590,240,75,24))
        self.pushButtonDelete.setObjectName("pushButtonDelete")

        self.tableWidgetOffices = QtGui.QTableWidget(Add_Office)
        self.tableWidgetOffices.setGeometry(QtCore.QRect(10,40,651,192))
        self.tableWidgetOffices.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.tableWidgetOffices.setGridStyle(QtCore.Qt.NoPen)
        self.tableWidgetOffices.setObjectName("tableWidgetOffices")

        self.retranslateUi(Add_Office)
        QtCore.QObject.connect(self.pushButtonOk,QtCore.SIGNAL("clicked()"),Add_Office.close)
        QtCore.QMetaObject.connectSlotsByName(Add_Office)
        Add_Office.setTabOrder(self.lineEditName,self.lineEditLocation)
        Add_Office.setTabOrder(self.lineEditLocation,self.lineEditDescription)
        Add_Office.setTabOrder(self.lineEditDescription,self.lineEditContact)
        Add_Office.setTabOrder(self.lineEditContact,self.lineEditPhone)
        Add_Office.setTabOrder(self.lineEditPhone,self.pushButtonAdd)
        Add_Office.setTabOrder(self.pushButtonAdd,self.tableWidgetOffices)
        Add_Office.setTabOrder(self.tableWidgetOffices,self.pushButtonDelete)
        Add_Office.setTabOrder(self.pushButtonDelete,self.pushButtonOk)

    def retranslateUi(self, Add_Office):
        Add_Office.setWindowTitle(QtGui.QApplication.translate("Office_view", "Oficinas", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonOk.setText(QtGui.QApplication.translate("Office_view", "Ok", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Office_view", "Oficinas disponibles", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("Office_view", "Agregar una nueva oficina", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("Office_view", "Descripcion", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("Office_view", "Telefono", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("Office_view", "Contacto", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Office_view", "Nombre", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("Office_view", "Ubicacion", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonAdd.setText(QtGui.QApplication.translate("Office_view", "Agregar nueva", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonDelete.setText(QtGui.QApplication.translate("Office_view", "Eliminar", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidgetOffices.clear()
        self.tableWidgetOffices.setColumnCount(5)
        self.tableWidgetOffices.setRowCount(0)

        headerItem = QtGui.QTableWidgetItem()
        headerItem.setText(QtGui.QApplication.translate("Office_view", "Nombre", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidgetOffices.setHorizontalHeaderItem(0,headerItem)

        headerItem1 = QtGui.QTableWidgetItem()
        headerItem1.setText(QtGui.QApplication.translate("Office_view", "Ubicacion", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidgetOffices.setHorizontalHeaderItem(1,headerItem1)

        headerItem2 = QtGui.QTableWidgetItem()
        headerItem2.setText(QtGui.QApplication.translate("Office_view", "Contacto", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidgetOffices.setHorizontalHeaderItem(2,headerItem2)

        headerItem3 = QtGui.QTableWidgetItem()
        headerItem3.setText(QtGui.QApplication.translate("Office_view", "Telefono", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidgetOffices.setHorizontalHeaderItem(3,headerItem3)

        headerItem4 = QtGui.QTableWidgetItem()
        headerItem4.setText(QtGui.QApplication.translate("Office_view", "Descripcion", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidgetOffices.setHorizontalHeaderItem(4,headerItem4)



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    Add_Office = QtGui.QWidget()
    ui = Ui_Office_view()
    ui.setupUi(Add_Office)
    Add_Office.show()
    sys.exit(app.exec_())
